<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		.box{
			width: 200px;
			height: 200px;
			background: orange;
		}
	</style>
	<link href="https://cdn.bootcss.com/animate.css/3.7.2/animate.min.css" rel="stylesheet">
</head>
<script type="text/javascript" src="lib/vue-2.6.10.js"></script>
<body>
	<div id="app" style="width: 400px;margin: auto;">
		<h1>{{ title }}</h1>
		<button @click="flag = !flag">点击切换显示隐藏</button>
		
		<transition enter-active-class="animated bounceInLeft" leave-active-class="animated bounceOutRight">	
			<div class="box" v-show="flag"></div>
		</transition>

	</div>
	<script type="text/javascript">
		const vm = new Vue({
			el:'#app',
			data:{
				title:'vue -- animate 组件库动画',
				flag:true
			}

		})

	</script>
</body>
</html>